import request from './request.js'

// 获取部分MV
export function getVideo(limit = 10,offset = 0) {
	return request.get('/top/mv', {
		limit,
		offset
	})
}

// 获取指定id的MV资源
export function getVideoById(id) {
	return request.get('/mv/url', {
		id
	})
}

// 获取指定id的MV信息
export function getVideoContent(mvid) {
	return request.get('/mv/detail', {
		mvid
	})
}

// 获取相关视频
export function getRelated(id) {
	return request.get('/related/allvideo', {
		id
	})
}